package com.human.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.human.entity.Emp;
import com.baomidou.mybatisplus.extension.service.IService;
import com.human.entity.ResultVo;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jzq
 * @since 2023-02-14
 */
public interface IEmpService extends IService<Emp> {

    ResultVo<String> update(Emp emp);

    ResultVo<String>saveEmp(Emp emp);

    ResultVo<Page> page(int current, int pageSize, String name);

    ResultVo<List> queryEmpByName(String name);

    ResultVo<Emp> getEmpById(Integer id);

    ResultVo getAllEmp();

    ResultVo<Emp> login(Emp emp, HttpServletRequest request);

    ResultVo delEmp(Integer id);

    ResultVo getRestNum();

    ResultVo getWorkNum();

    ResultVo getLeaveNum();

}
